import dayjs from "dayjs";

/**
 *
 * @param str
 * @param format
 * @returns {string}
 */
export const timeFormatFilter = (str, format) => {
  if (!str) return "";
  const obj = dayjs(str);
  return obj.format(format);
};
